package com.ryder.ryderschool.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ryder.ryderschool.entity.ProjectAuditLog;
import com.ryder.ryderschool.mapper.ProjectAuditLogMapper;
import com.ryder.ryderschool.service.ProjectAuditLogService;
import org.springframework.stereotype.Service;

@Service
public class ProjectAuditLogServiceImpl extends ServiceImpl<ProjectAuditLogMapper, ProjectAuditLog> implements ProjectAuditLogService {

    @Override
    public void logAudit(Integer projectId, Integer auditorId, String action, String comment) {
        ProjectAuditLog log = new ProjectAuditLog();
        log.setProjectId(projectId);
        log.setAuditorId(auditorId);
        log.setAction(action);
        log.setComment(comment);
        save(log);
    }
} 